package com.my.cd.command;

/**
 * 具体命令实现：音响关闭
 */
public class StereoOffCommand implements Command {
    private Stereo setreo;

    public StereoOffCommand(Stereo setreo) {
        this.setreo = setreo;
    }

    @Override
    public void execute() {
        setreo.off();
    }

    @Override
    public void undo() {
        setreo.on();
        setreo.setCd();
    }

}

